package com.project.bean;

import lombok.Data;
import nonapi.io.github.classgraph.json.Id;
import org.springframework.data.elasticsearch.annotations.Document;
import org.springframework.data.elasticsearch.annotations.Field;
import org.springframework.data.elasticsearch.annotations.FieldType;

@Data
@Document(indexName = "sale_html")
public class SaleEntity {
    @Id
    @Field(type = FieldType.Keyword)
    private String saleId;
    @Field(type = FieldType.Keyword)
    private String saleType;
    @Field(type = FieldType.Keyword)
    private String saleName;
    @Field(type = FieldType.Keyword)
    private int salePrice;
    @Field(type = FieldType.Keyword)
    private String saleImg;
    @Field(type = FieldType.Keyword)
    private String saleUserName;
    @Field(type = FieldType.Text)
    private String saleHtml;
}
